package newPan3d.content.jineng
{
	import _Pan3D.program.Shader3D;
	
	public class HuoQiuShader extends Shader3D
	{
		public static var HUO_QIU_SHADER:String = "HuoQiuShader";
		public function HuoQiuShader()
		{
			vertex = 
				"mov vt0,va0 \n"+
				"mul vt0.xyz,vt0.xyz,va2.y \n"+
				"mov vt1,vc[va2.x] \n"+
				
                "add vt0.x,vt0.x,vt1.x \n"+
                "add vt0.y,vt0.y,vt1.y \n"+
                "add vt0.z,vt0.z,vt1.z \n"+
			
				"m44 vt0,vt0, vc4 \n" +
				"m44 vt0, vt0, vc0 \n" +
				"mov op, vt0 \n" +
				"mov v0, va1";
			fragment =
				
				"tex ft0, v0, fs0 <2d,clamp,repeat>\n"+
				"mov oc, ft0";
		}
	}
}